package com.iam.edu.ad.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iam.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author kele
 * @since 2022-10-25
 */
@Getter
@Setter
@TableName("promotion_ad")
public class PromotionAd extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "广告名")
    @TableField("name")
    private String name;

    @Schema(description = "广告位id")
    @TableField("spaceId")
    private Integer spaceId;

    @Schema(description = "精确搜索关键词")
    @TableField("keyword")
    private String keyword;

    @Schema(description = "静态广告的内容")
    @TableField("htmlContent")
    private String htmlContent;

    @Schema(description = "文字一")
    @TableField("text")
    private String text;

    @Schema(description = "链接一")
    @TableField("link")
    private String link;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @TableField("status")
    private Integer status;

    @Schema(description = "优先级")
    @TableField("priority")
    private Integer priority;

    @TableField("img")
    private String img;


}
